[index]

Disable MenuItem Command

Syntax

For menu items:
disable menuItem <item> of [menu <submenu_name> of] menu <menu_name> For menus: disable menu <menu_name>

Description

The disable menuItem command makes the specified menu item unselectable, or dimmed. If the target is a menu, the disable menuItem command disables every menu item and, on the Macintosh only, the menu itself. The disable menuItem command applies only to user-defined menus. A menu item can be created disabled when setting the menuItems property. Place an open parenthesis before the name of the item to create it disabled.

Examples

Enter the following statements in the Message Box and press Enter after each: create menu "Colors" add menuItem "Transparent" to "Colors" To disable the menu item, type the following in the Message Box and press Enter:
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.